< previous page page_353 next page >

Page 353
find a whole word that matches the string you input, you can perform a case-sensitive search, and you can put in wildcards such as * and ? to perform pattern matching. The wildcard characters are the same as what you use to find a file in Explorer. For example, if you input str*, the Find dialog box searches for any word that begins with the letters str. Also, you can use ? as a placeholder for one character. Therefore, if you input ?str, the Find dialog box searches for any word that contains any letter followed by the letters str.
Search and Replace
Many times when youre programming, you need to replace a certain string of text with something different (for example, changing a variable from one name to another). This can be done in the Replace dialog box. To bring up the Replace dialog box, you can select Edit, Replace from the Visual Basic menu, press Ctrl+H from within a code window, or click the Replace command button in the Find window. Figure 18.2 shows you an example of the Replace dialog box.
8160-0353a.gif
Figure 18.2
The Replace dialog box.
This dialog box is essentially the same as the Find dialog box, but it allows you to replace a certain piece of text with a different piece of text at a time by using the Replace button. You can also find the next occurrence of the Find What text by clicking the Find Next button. If you want to replace all the values within the scope specified, you can click the Replace All button.
Editing with a Split Screen
Just below the Object and Proc bar in the code window, you can see a thin line. If you grab this line with your mouse, you can drag it down until there are two panes in the edit window. This is very useful if you need to look at module-level variables at the same time youre editing some code in another part of the module. Figure 18.3 shows an example of this.

 
< previous page page_353 next page >

If you like this book, buy it!